package net.chrisrichardson.ec2deployer.testutil

import net.chrisrichardson.ec2deployer.core.AWSProperties

class AWSPropertiesUtil {
    public static AWSProperties makeAWSProperties() {
        new AWSProperties(getAWSPath())
    }

    def static getAWSPath() {
        def value = System.getProperty('ec2deploy.aws.properties')
        if (!value) throw new RuntimeException("no value specified for ec2deploy.aws.properties")
        value
    }
}